<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Include/ble/ble_services/ble_srv_common.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('ble__srv__common_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">S110_nRF51822/Include/ble/ble_services/ble_srv_common.h</div>  </div>
</div>
<div class="contents">
<a href="ble__srv__common_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is property of Nordic Semiconductor ASA.</span>
<a name="l00004"></a>00004 <span class="comment"> * Terms and conditions of usage are described in detail in NORDIC</span>
<a name="l00005"></a>00005 <span class="comment"> * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensees are granted free, non-transferable use of the information. NO</span>
<a name="l00008"></a>00008 <span class="comment"> * WARRANTY of ANY KIND is provided. This heading must NOT be removed from</span>
<a name="l00009"></a>00009 <span class="comment"> * the file.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $LastChangedRevision$</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef BLE_SRV_COMMON_H__</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define BLE_SRV_COMMON_H__</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;ble_types.h&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="ble__sdk__util_8h.html">ble_sdk_util.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;ble_gap.h&quot;</span>
<a name="l00030"></a>00030 
<a name="l00033"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gaeff9147171963f817ff821afaf714345">00033</a> <span class="preprocessor">#define BLE_UUID_ALERT_NOTIFICATION_SERVICE                      0x1811     </span>
<a name="l00034"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#ga4090520f3007fe6f90f06a6f4f8d5845">00034</a> <span class="preprocessor">#define BLE_UUID_BATTERY_SERVICE                                 0x180F     </span>
<a name="l00035"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#ga3d14d365f34d59d4772c9f2ea2eed035">00035</a> <span class="preprocessor">#define BLE_UUID_BLOOD_PRESSURE_SERVICE                          0x1810     </span>
<a name="l00036"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#ga3873aff1b932b662369cfea9adbc470e">00036</a> <span class="preprocessor">#define BLE_UUID_CURRENT_TIME_SERVICE                            0x1805     </span>
<a name="l00037"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gab8eac87431b53cdfaeccd6d3a15ed5ac">00037</a> <span class="preprocessor">#define BLE_UUID_DEVICE_INFORMATION_SERVICE                      0x180A     </span>
<a name="l00038"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gab0db0c25a5adfbc20c267fa33af88b63">00038</a> <span class="preprocessor">#define BLE_UUID_GLUCOSE_SERVICE                                 0x1808     </span>
<a name="l00039"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gad977302141caea8b19e11638a93ac76d">00039</a> <span class="preprocessor">#define BLE_UUID_HEALTH_THERMOMETER_SERVICE                      0x1809     </span>
<a name="l00040"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gada8a8d4952d86f3557365ce0ead40e15">00040</a> <span class="preprocessor">#define BLE_UUID_HEART_RATE_SERVICE                              0x180D     </span>
<a name="l00041"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gaafd551131de655ea5987ed148170bf2d">00041</a> <span class="preprocessor">#define BLE_UUID_HUMAN_INTERFACE_DEVICE_SERVICE                  0x1812     </span>
<a name="l00042"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#ga4badeabf171b217259b1f67f554e8064">00042</a> <span class="preprocessor">#define BLE_UUID_IMMEDIATE_ALERT_SERVICE                         0x1802     </span>
<a name="l00043"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gabdc9cfe9d896039bef555b0bfe14cbd4">00043</a> <span class="preprocessor">#define BLE_UUID_LINK_LOSS_SERVICE                               0x1803     </span>
<a name="l00044"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gaaee29ba322e3872e56c903750b8bd7b2">00044</a> <span class="preprocessor">#define BLE_UUID_NEXT_DST_CHANGE_SERVICE                         0x1807     </span>
<a name="l00045"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gae82dc7ee84342443d18c56a180b4a373">00045</a> <span class="preprocessor">#define BLE_UUID_PHONE_ALERT_STATUS_SERVICE                      0x180E     </span>
<a name="l00046"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#ga6f93844f0577874ffd4cd437cca028fd">00046</a> <span class="preprocessor">#define BLE_UUID_REFERENCE_TIME_UPDATE_SERVICE                   0x1806     </span>
<a name="l00047"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#ga68511464f08fdbba54de28898662f6fe">00047</a> <span class="preprocessor">#define BLE_UUID_SCAN_PARAMETERS_SERVICE                         0x1813     </span>
<a name="l00048"></a><a class="code" href="group___u_u_i_d___s_e_r_v_i_c_e_s.html#gabe5ff0bce57a32f58a1e16913a38ce04">00048</a> <span class="preprocessor">#define BLE_UUID_TX_POWER_SERVICE                                0x1804     </span>
<a name="l00053"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga074202780ef8ef0322384d2752133ca3">00053</a> <span class="preprocessor">#define BLE_UUID_BATTERY_LEVEL_STATE_CHAR                        0x2A1B     </span>
<a name="l00054"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga852f204fe6cccdb6c886266f473bcb57">00054</a> <span class="preprocessor">#define BLE_UUID_BATTERY_POWER_STATE_CHAR                        0x2A1A     </span>
<a name="l00055"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga664915dfa9a21a5d72bd57809d0a7521">00055</a> <span class="preprocessor">#define BLE_UUID_REMOVABLE_CHAR                                  0x2A3A     </span>
<a name="l00056"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga28874bd6e2f9043ff5af8650d2c6cac4">00056</a> <span class="preprocessor">#define BLE_UUID_SERVICE_REQUIRED_CHAR                           0x2A3B     </span>
<a name="l00057"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gafece2628804d8b7950647440166bd0dd">00057</a> <span class="preprocessor">#define BLE_UUID_ALERT_CATEGORY_ID_CHAR                          0x2A43     </span>
<a name="l00058"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gad6263d2a8007f7aae3fe2f98e3443f92">00058</a> <span class="preprocessor">#define BLE_UUID_ALERT_CATEGORY_ID_BIT_MASK_CHAR                 0x2A42     </span>
<a name="l00059"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga7e1c4add4327121e5ee93a8dce603c28">00059</a> <span class="preprocessor">#define BLE_UUID_ALERT_LEVEL_CHAR                                0x2A06     </span>
<a name="l00060"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga1f4a8198e360b88703451d62d0fdeee2">00060</a> <span class="preprocessor">#define BLE_UUID_ALERT_NOTIFICATION_CONTROL_POINT_CHAR           0x2A44     </span>
<a name="l00061"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaf59c96168a42746869b4fddef543aa9f">00061</a> <span class="preprocessor">#define BLE_UUID_ALERT_STATUS_CHAR                               0x2A3F     </span>
<a name="l00062"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga2d4368e048443fcb6d5ec5b11fe227c8">00062</a> <span class="preprocessor">#define BLE_UUID_BATTERY_LEVEL_CHAR                              0x2A19     </span>
<a name="l00063"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga4eb8d4e48239e4341fc68449478346e0">00063</a> <span class="preprocessor">#define BLE_UUID_BLOOD_PRESSURE_FEATURE_CHAR                     0x2A49     </span>
<a name="l00064"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga95fc99c7a99cf9d991c81027e4866936">00064</a> <span class="preprocessor">#define BLE_UUID_BLOOD_PRESSURE_MEASUREMENT_CHAR                 0x2A35     </span>
<a name="l00065"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga6c4ed03e36ad601161835e9f8f5df48e">00065</a> <span class="preprocessor">#define BLE_UUID_BODY_SENSOR_LOCATION_CHAR                       0x2A38     </span>
<a name="l00066"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga94d261ee725a4b6c163d9fac8e846583">00066</a> <span class="preprocessor">#define BLE_UUID_BOOT_KEYBOARD_INPUT_REPORT_CHAR                 0x2A22     </span>
<a name="l00067"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga9504eca7b4df3ce415dad46abd2ea24f">00067</a> <span class="preprocessor">#define BLE_UUID_BOOT_KEYBOARD_OUTPUT_REPORT_CHAR                0x2A32     </span>
<a name="l00068"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga62fbfe0ad9fac820ca7e840e637b886b">00068</a> <span class="preprocessor">#define BLE_UUID_BOOT_MOUSE_INPUT_REPORT_CHAR                    0x2A33     </span>
<a name="l00069"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gab8d3b6d44f5d580410219ad4a302d69d">00069</a> <span class="preprocessor">#define BLE_UUID_CURRENT_TIME_CHAR                               0x2A2B     </span>
<a name="l00070"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga3883e83e6551a17ec30ea5d0742925bd">00070</a> <span class="preprocessor">#define BLE_UUID_DATE_TIME_CHAR                                  0x2A08     </span>
<a name="l00071"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gac59b6213c0bb24a5a0d8f14f0e9c2dae">00071</a> <span class="preprocessor">#define BLE_UUID_DAY_DATE_TIME_CHAR                              0x2A0A     </span>
<a name="l00072"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga3901d2c8e48d76f4bdd9e9d69e821935">00072</a> <span class="preprocessor">#define BLE_UUID_DAY_OF_WEEK_CHAR                                0x2A09     </span>
<a name="l00073"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga710752f6b7aaf4e90313832f9750bef4">00073</a> <span class="preprocessor">#define BLE_UUID_DST_OFFSET_CHAR                                 0x2A0D     </span>
<a name="l00074"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga1ab2795a93cef9ae076027e04819aa2b">00074</a> <span class="preprocessor">#define BLE_UUID_EXACT_TIME_256_CHAR                             0x2A0C     </span>
<a name="l00075"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga7ff0e67deccd8dda48960197b0154a31">00075</a> <span class="preprocessor">#define BLE_UUID_FIRMWARE_REVISION_STRING_CHAR                   0x2A26     </span>
<a name="l00076"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga6442ec575fbda7af8599107f35a13188">00076</a> <span class="preprocessor">#define BLE_UUID_GLUCOSE_FEATURE_CHAR                            0x2A51     </span>
<a name="l00077"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga57c27f6eefe660180a56186b00eba61d">00077</a> <span class="preprocessor">#define BLE_UUID_GLUCOSE_MEASUREMENT_CHAR                        0x2A18     </span>
<a name="l00078"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gacc1ae461f72bb727b305a8be76e2ecb4">00078</a> <span class="preprocessor">#define BLE_UUID_GLUCOSE_MEASUREMENT_CONTEXT_CHAR                0x2A34     </span>
<a name="l00079"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gae29e769199c4324a4f0123d37b115c0f">00079</a> <span class="preprocessor">#define BLE_UUID_HARDWARE_REVISION_STRING_CHAR                   0x2A27     </span>
<a name="l00080"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga4753e9ae8653ec1c3217a3ab65942f64">00080</a> <span class="preprocessor">#define BLE_UUID_HEART_RATE_CONTROL_POINT_CHAR                   0x2A39     </span>
<a name="l00081"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga2aa05a5800902525167c99d2a9dbe24b">00081</a> <span class="preprocessor">#define BLE_UUID_HEART_RATE_MEASUREMENT_CHAR                     0x2A37     </span>
<a name="l00082"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga41e3674c6345ca159cae6a7f2260626e">00082</a> <span class="preprocessor">#define BLE_UUID_HID_CONTROL_POINT_CHAR                          0x2A4C     </span>
<a name="l00083"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga135c81eceb357731fd6ca37f6a8831b9">00083</a> <span class="preprocessor">#define BLE_UUID_HID_INFORMATION_CHAR                            0x2A4A     </span>
<a name="l00084"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga033523799a247bd7c0806569e38c6863">00084</a> <span class="preprocessor">#define BLE_UUID_IEEE_REGULATORY_CERTIFICATION_DATA_LIST_CHAR    0x2A2A     </span>
<a name="l00085"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gabb055d0a0c07ddc9c8cfc1e5087952b4">00085</a> <span class="preprocessor">#define BLE_UUID_INTERMEDIATE_CUFF_PRESSURE_CHAR                 0x2A36     </span>
<a name="l00086"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gabeb38d1ef6cfcf5d11ecb27f911144cf">00086</a> <span class="preprocessor">#define BLE_UUID_INTERMEDIATE_TEMPERATURE_CHAR                   0x2A1E     </span>
<a name="l00087"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaff5bf5d1a58b7ab49de3610103b99a0c">00087</a> <span class="preprocessor">#define BLE_UUID_LOCAL_TIME_INFORMATION_CHAR                     0x2A0F     </span>
<a name="l00088"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga8f8578321e635bf151c277cfc1f4a152">00088</a> <span class="preprocessor">#define BLE_UUID_MANUFACTURER_NAME_STRING_CHAR                   0x2A29     </span>
<a name="l00089"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga35c49d1b7c3ddb1d4fcd45fc103f2e48">00089</a> <span class="preprocessor">#define BLE_UUID_MEASUREMENT_INTERVAL_CHAR                       0x2A21     </span>
<a name="l00090"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga532c5062edf52c03c15eb326b9e0a197">00090</a> <span class="preprocessor">#define BLE_UUID_MODEL_NUMBER_STRING_CHAR                        0x2A24     </span>
<a name="l00091"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gafa2b0f5ab54f9adb7557f4e6683f2635">00091</a> <span class="preprocessor">#define BLE_UUID_NEW_ALERT_CHAR                                  0x2A46     </span>
<a name="l00092"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaf60a9da39d7c0ee6b8d0340e1135a1f3">00092</a> <span class="preprocessor">#define BLE_UUID_PNP_ID_CHAR                                     0x2A50     </span>
<a name="l00093"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaca379d6676c9d33db4a169702dfad527">00093</a> <span class="preprocessor">#define BLE_UUID_PROTOCOL_MODE_CHAR                              0x2A4E     </span>
<a name="l00094"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga5fb7a8bba8e429bc819f6a1fb69d8239">00094</a> <span class="preprocessor">#define BLE_UUID_RECORD_ACCESS_CONTROL_POINT_CHAR                0x2A52     </span>
<a name="l00095"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaa27480b4216ccff554488f82919d4434">00095</a> <span class="preprocessor">#define BLE_UUID_REFERENCE_TIME_INFORMATION_CHAR                 0x2A14     </span>
<a name="l00096"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga68c96a715e7da13a4c19e699604475be">00096</a> <span class="preprocessor">#define BLE_UUID_REPORT_CHAR                                     0x2A4D     </span>
<a name="l00097"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga924b7414f19f56ab5a88bd4cabd96094">00097</a> <span class="preprocessor">#define BLE_UUID_REPORT_MAP_CHAR                                 0x2A4B     </span>
<a name="l00098"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga689395a3cf7acf0edbc45977cd015083">00098</a> <span class="preprocessor">#define BLE_UUID_RINGER_CONTROL_POINT_CHAR                       0x2A40     </span>
<a name="l00099"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga638141dc5c22f259a53cb79266e75208">00099</a> <span class="preprocessor">#define BLE_UUID_RINGER_SETTING_CHAR                             0x2A41     </span>
<a name="l00100"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gafb3719931db746f3dbe11c13460bc988">00100</a> <span class="preprocessor">#define BLE_UUID_SCAN_INTERVAL_WINDOW_CHAR                       0x2A4F     </span>
<a name="l00101"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga5470bc2d9deff67f1c10c56ba00b559c">00101</a> <span class="preprocessor">#define BLE_UUID_SCAN_REFRESH_CHAR                               0x2A31     </span>
<a name="l00102"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga417d8b27e6bbbfe6016393a4808dae08">00102</a> <span class="preprocessor">#define BLE_UUID_SERIAL_NUMBER_STRING_CHAR                       0x2A25     </span>
<a name="l00103"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaae2190189c63a43632f3b060759d7d44">00103</a> <span class="preprocessor">#define BLE_UUID_SOFTWARE_REVISION_STRING_CHAR                   0x2A28     </span>
<a name="l00104"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga637b5bc14f79dfd28a3ae60c0b2e7e8a">00104</a> <span class="preprocessor">#define BLE_UUID_SUPPORTED_NEW_ALERT_CATEGORY_CHAR               0x2A47     </span>
<a name="l00105"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gad34a2683b0b1e7960b5aa48c9d99d0d7">00105</a> <span class="preprocessor">#define BLE_UUID_SUPPORTED_UNREAD_ALERT_CATEGORY_CHAR            0x2A48     </span>
<a name="l00106"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gab64d330c6022106955c0b825649d9485">00106</a> <span class="preprocessor">#define BLE_UUID_SYSTEM_ID_CHAR                                  0x2A23     </span>
<a name="l00107"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga116088a425b8736b9a6e3b7b5acb55b1">00107</a> <span class="preprocessor">#define BLE_UUID_TEMPERATURE_MEASUREMENT_CHAR                    0x2A1C     </span>
<a name="l00108"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gac62318d1d32150d894ba29a149bd5893">00108</a> <span class="preprocessor">#define BLE_UUID_TEMPERATURE_TYPE_CHAR                           0x2A1D     </span>
<a name="l00109"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gabe1f59d03236bab5b9a5d3bbd0f533e5">00109</a> <span class="preprocessor">#define BLE_UUID_TIME_ACCURACY_CHAR                              0x2A12     </span>
<a name="l00110"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaa0f1123516f1f49eb89f9ec870cb2f83">00110</a> <span class="preprocessor">#define BLE_UUID_TIME_SOURCE_CHAR                                0x2A13     </span>
<a name="l00111"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga986f470be4f73ff48daa6707079dbef1">00111</a> <span class="preprocessor">#define BLE_UUID_TIME_UPDATE_CONTROL_POINT_CHAR                  0x2A16     </span>
<a name="l00112"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gad027270f8853c645b9a895c20dcbce23">00112</a> <span class="preprocessor">#define BLE_UUID_TIME_UPDATE_STATE_CHAR                          0x2A17     </span>
<a name="l00113"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gac02eb48093ab04ceee64b9e72b4d376f">00113</a> <span class="preprocessor">#define BLE_UUID_TIME_WITH_DST_CHAR                              0x2A11     </span>
<a name="l00114"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga2c9693917f27dd6271c75669210d87e0">00114</a> <span class="preprocessor">#define BLE_UUID_TIME_ZONE_CHAR                                  0x2A0E     </span>
<a name="l00115"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaae53fe783458ecace3f00122d67868d4">00115</a> <span class="preprocessor">#define BLE_UUID_TX_POWER_LEVEL_CHAR                             0x2A07     </span>
<a name="l00120"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#ga2972d92af18490b81dd0679328d199c4">00120</a> <span class="preprocessor">#define BLE_UUID_EXTERNAL_REPORT_REF_DESCR                       0x2907     </span>
<a name="l00121"></a><a class="code" href="group___u_u_i_d___c_h_a_r_a_c_t_e_r_i_s_t_i_c_s.html#gaee4c1d5c54af835b686f10af4e630274">00121</a> <span class="preprocessor">#define BLE_UUID_REPORT_REF_DESCR                                0x2908     </span>
<a name="l00126"></a><a class="code" href="group___c_c_c_d___b_i_t_s.html#gabef044409e39baf59eeb9a12e6d51318">00126</a> <span class="preprocessor">#define BLE_CCCD_NOTIFY_BIT_MASK                                 0x0001     </span>
<a name="l00127"></a><a class="code" href="group___c_c_c_d___b_i_t_s.html#gaf60d0b3dfa7413d7a7ce20de06b413a3">00127</a> <span class="preprocessor">#define BLE_CCCD_INDICATE_BIT_MASK                               0x0002     </span>
<a name="l00132"></a><a class="code" href="group___a_l_e_r_t___l_e_v_e_l___v_a_l_u_e_s.html#ga19af58d002f35b548719d7043562cee7">00132</a> <span class="preprocessor">#define BLE_CHAR_ALERT_LEVEL_NO_ALERT                            0x00       </span>
<a name="l00133"></a><a class="code" href="group___a_l_e_r_t___l_e_v_e_l___v_a_l_u_e_s.html#gaf4fb46aeec8acd50f37f0e6277e45cee">00133</a> <span class="preprocessor">#define BLE_CHAR_ALERT_LEVEL_MILD_ALERT                          0x01       </span>
<a name="l00134"></a><a class="code" href="group___a_l_e_r_t___l_e_v_e_l___v_a_l_u_e_s.html#ga9fc865fa1b7f643d40c5e43dc81c0556">00134</a> <span class="preprocessor">#define BLE_CHAR_ALERT_LEVEL_HIGH_ALERT                          0x02       </span>
<a name="l00137"></a><a class="code" href="group__ble__sdk__srv__common.html#gafbfc0ef111ca725cc8bb500fd93301cc">00137</a> <span class="preprocessor">#define BLE_SRV_ENCODED_REPORT_REF_LEN                           2          </span>
<a name="l00141"></a><a class="code" href="group__ble__sdk__srv__common.html#gac10076d39c0ddcfe333252fe8810a1f1">00141</a> <span class="preprocessor">typedef void (*ble_srv_error_handler_t)(uint32_t nrf_error);</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span>
<a name="l00148"></a>00148 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00149"></a>00149 {
<a name="l00150"></a><a class="code" href="structble__srv__report__ref__t.html#a725a13d8d43f65c0f5e8adc271f71573">00150</a>     uint8_t <a class="code" href="structble__srv__report__ref__t.html#a725a13d8d43f65c0f5e8adc271f71573">report_id</a>;                                  
<a name="l00151"></a><a class="code" href="structble__srv__report__ref__t.html#a082cbd2ab34b2f8c1afaf98b3b19fac0">00151</a>     uint8_t <a class="code" href="structble__srv__report__ref__t.html#a082cbd2ab34b2f8c1afaf98b3b19fac0">report_type</a>;                                
<a name="l00152"></a>00152 } <a class="code" href="structble__srv__report__ref__t.html" title="Value of a Report Reference descriptor.">ble_srv_report_ref_t</a>;
<a name="l00153"></a>00153 
<a name="l00158"></a>00158 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00159"></a>00159 {
<a name="l00160"></a><a class="code" href="structble__srv__utf8__str__t.html#a1892eba2086d12ac2b09005aeb09ea3b">00160</a>     uint16_t  <a class="code" href="structble__srv__utf8__str__t.html#a1892eba2086d12ac2b09005aeb09ea3b">length</a>;                                   
<a name="l00161"></a><a class="code" href="structble__srv__utf8__str__t.html#a8625c86b8c951e7f96b1e7fa70e7cc41">00161</a>     uint8_t * <a class="code" href="structble__srv__utf8__str__t.html#a8625c86b8c951e7f96b1e7fa70e7cc41">p_str</a>;                                    
<a name="l00162"></a>00162 } <a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a>;
<a name="l00163"></a>00163 
<a name="l00168"></a>00168 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00169"></a>00169 {
<a name="l00170"></a><a class="code" href="structble__srv__security__mode__t.html#af0352a482ca2a1305ec5941bc4af0ec2">00170</a>     <a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a> <a class="code" href="structble__srv__security__mode__t.html#af0352a482ca2a1305ec5941bc4af0ec2">read_perm</a>;                  
<a name="l00171"></a><a class="code" href="structble__srv__security__mode__t.html#a6060006e42afe1970aed0a8490f71445">00171</a>     <a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a> <a class="code" href="structble__srv__security__mode__t.html#a6060006e42afe1970aed0a8490f71445">write_perm</a>;                 
<a name="l00172"></a>00172 } <a class="code" href="structble__srv__security__mode__t.html" title="Security settings structure.">ble_srv_security_mode_t</a>;
<a name="l00173"></a>00173 
<a name="l00178"></a>00178 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00179"></a>00179 {
<a name="l00180"></a>00180     <a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a> cccd_write_perm;
<a name="l00181"></a><a class="code" href="structble__srv__cccd__security__mode__t.html#af0352a482ca2a1305ec5941bc4af0ec2">00181</a>     <a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a> <a class="code" href="structble__srv__cccd__security__mode__t.html#af0352a482ca2a1305ec5941bc4af0ec2">read_perm</a>;                  
<a name="l00182"></a><a class="code" href="structble__srv__cccd__security__mode__t.html#a6060006e42afe1970aed0a8490f71445">00182</a>     <a class="code" href="structble__gap__conn__sec__mode__t.html" title="GAP link requirements.">ble_gap_conn_sec_mode_t</a> <a class="code" href="structble__srv__cccd__security__mode__t.html#a6060006e42afe1970aed0a8490f71445">write_perm</a>;                 
<a name="l00183"></a>00183 } <a class="code" href="structble__srv__cccd__security__mode__t.html" title="Security settings structure.">ble_srv_cccd_security_mode_t</a>;
<a name="l00184"></a>00184 
<a name="l00191"></a><a class="code" href="group__ble__sdk__srv__common.html#ga11fd3cc1b15d4bec4accc37618305ccb">00191</a> <span class="keyword">static</span> __INLINE <span class="keywordtype">bool</span> <a class="code" href="group__ble__sdk__srv__common.html#ga11fd3cc1b15d4bec4accc37618305ccb" title="Inline function for decoding a CCCD value, and then testing if notification is enabled.">ble_srv_is_notification_enabled</a>(uint8_t * p_encoded_data)
<a name="l00192"></a>00192 {
<a name="l00193"></a>00193     uint16_t cccd_value = <a class="code" href="group__ble__sdk__lib__util.html#gaf30655fd762a9debe0b499db3a9451f7" title="Inline function for decoding a uint16 value.">uint16_decode</a>(p_encoded_data);
<a name="l00194"></a>00194     <span class="keywordflow">return</span> ((cccd_value &amp; <a class="code" href="group___c_c_c_d___b_i_t_s.html#gabef044409e39baf59eeb9a12e6d51318">BLE_CCCD_NOTIFY_BIT_MASK</a>) != 0);
<a name="l00195"></a>00195 }
<a name="l00196"></a>00196     
<a name="l00203"></a><a class="code" href="group__ble__sdk__srv__common.html#gaf572afefe05bacfb4d5967d9c5a6c5e6">00203</a> <span class="keyword">static</span> __INLINE <span class="keywordtype">bool</span> <a class="code" href="group__ble__sdk__srv__common.html#gaf572afefe05bacfb4d5967d9c5a6c5e6" title="Inline function for decoding a CCCD value, and then testing if indication is enabled.">ble_srv_is_indication_enabled</a>(uint8_t * p_encoded_data)
<a name="l00204"></a>00204 {
<a name="l00205"></a>00205     uint16_t cccd_value = <a class="code" href="group__ble__sdk__lib__util.html#gaf30655fd762a9debe0b499db3a9451f7" title="Inline function for decoding a uint16 value.">uint16_decode</a>(p_encoded_data);
<a name="l00206"></a>00206     <span class="keywordflow">return</span> ((cccd_value &amp; <a class="code" href="group___c_c_c_d___b_i_t_s.html#gaf60d0b3dfa7413d7a7ce20de06b413a3">BLE_CCCD_INDICATE_BIT_MASK</a>) != 0);
<a name="l00207"></a>00207 }
<a name="l00208"></a>00208 
<a name="l00215"></a>00215 uint8_t <a class="code" href="group__ble__sdk__srv__common.html#gaebc3fc5316f1a6a67e830516b8f9aed5" title="Encode a Report Reference Descriptor.">ble_srv_report_ref_encode</a>(uint8_t *                    p_encoded_buffer,
<a name="l00216"></a>00216                                   <span class="keyword">const</span> <a class="code" href="structble__srv__report__ref__t.html" title="Value of a Report Reference descriptor.">ble_srv_report_ref_t</a> * p_report_ref);
<a name="l00217"></a>00217 
<a name="l00223"></a>00223 <span class="keywordtype">void</span> <a class="code" href="group__ble__sdk__srv__common.html#ga611dfcf7209a57c2e45964e8bb4c5756" title="Make UTF-8 structure refer to an ASCII string.">ble_srv_ascii_to_utf8</a>(<a class="code" href="structble__srv__utf8__str__t.html" title="UTF-8 string data type.">ble_srv_utf8_str_t</a> * p_utf8, <span class="keywordtype">char</span> * p_ascii);
<a name="l00224"></a>00224 
<a name="l00225"></a>00225 <span class="preprocessor">#endif // BLE_SRV_COMMON_H__</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="ble__srv__common_8h.html">ble_srv_common.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
